package com.xuxin.queue.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.xuxin.queue.R;

import org.jetbrains.annotations.NotNull;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by xu_xin
 * Created on 2020.08.07 0007
 */
public class BaseAdapter extends BaseQuickAdapter<String, BaseViewHolder> {

    public BaseAdapter() {
        super(R.layout.item_list);
        List<String> list = new ArrayList<>();
        list.add("视频demo");
        list.add("支付宝demo");
        list.add("微信支付demo");
        list.add("QQ浏览器X5内核demo");
        list.add("X5内核word预览demo");
        setNewInstance(list);
    }

    @Override
    protected void convert(@NotNull BaseViewHolder holder, String item) {
        holder.setText(R.id.item_list_name, item);
    }
}